package j17;

public class ex_movie implements ex_movieService {

	private ex_movieVO[] mdate = new ex_movieVO[100];
	
	private int pos = -1;
	
	@Override
	public boolean addMovie(ex_movieVO m) {
		mdate[++pos] = m;
		
		return true;
	}

	@Override
	public String readMovie() {
		String result = null;
		ex_movieVO mvo;
		for(int i = 0; i <= pos; ++i) {
			mvo = mdate[i];
			result += mvo.toString()+"\n";
		}
		return result;
	}

}
